<?php echo $this->Session->flash(); ?>
<table id="tabla" class="tabla" width="100%">
    <thead>
        <tr>
            <th>Departamento</th>
            <th colspan="2">Municipio</th>
    </thead>
    <tbody>
        <?php foreach ($cities as $city): ?>
            <tr>
                <td><?php echo $city['Departament']['nombre'] ?> </td>
                <td><?php echo $city['City']['nombre'] ?> </td>
                <td><?php if ($branch == "CPGA"OR $grupo==1) echo $this->Ajax->link("Eliminar", array('controller' => "UserCities", "action" => "delete", $city['UserCity']['id'], $user_id, $branch), array('update' => 'municipios', 'class' => 'actions'), '¿Realmente desea borrar el registro?') ?> </td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php if ($branch == "CPGA" OR $grupo==1) echo $this->Ajax->link("Adicionar", array('controller' => "UserCities", "action" => "add", $user_id, $branch), array('update' => 'municipios', 'class' => 'actions')) ?>
